const app = getApp();
const area = require("../../utils/area")
Page({
    data: {
        popupAreaflag: false,
        sexflag: false,
        sex:'请选择',
        columns: ['男', '女'],
        areaList: area.default,
    },

    uploadFileImg(){
      wx.chooseImage({
        count: 9, // 最多可以选择的图片张数，默认9
        sizeType: ['original', 'compressed'], // original 原图，compressed 压缩图，默认二者都有
        sourceType: ['album', 'camera'], // album 从相册选图，camera 使用相机，默认二者都有
        success: function(res){
          // success
        },
        fail: function() {
          // fail
        },
        complete: function() {
          // complete
        }
      })
    },

    closePopuparea(){
        this.setData({popupAreaflag: false})
    },

    showPopuparea(){
        this.setData({popupAreaflag: true})
    },

    selectArea(e){
        console.log(e.detail.values);
        this.closePopuparea();
    },

    showPopsex(){
       this.setData({sexflag: true})
    },

    closePopsex(){
        this.setData({sexflag: false})
    },

    selectSex(e){
        this.setData({sex: e.detail.value});
        this.closePopsex();
    },

    toSignature(){
      wx.navigateTo({ url: './../PersonalCenter/signature'})
    }
})